<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
<%@taglib prefix="rich" uri="http://richfaces.org/rich"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%--
    This file is an entry point for JavaServer Faces application.
--%>
<f:view>
    <html>
        <head>
            <link rel="stylesheet" type="text/css" href="/NamibiaMedicalControl/style.css" title="Variant Stream" media="screen,projection" >
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title><h:outputText value="#{msg.dati}"/></title>
        </head>
        <body>

            <div id="wrapper">
                <div id="logo">
                    <h1>Namibia medical control</h1>
                    <p><h:outputText value="#{msg.sottotitolo}"/></p>
                </div>
                <hr>
                <!-- end #logo -->
                <div id="header">
                    <div id="menu">
                        <ul>
                            <li><a href="/NamibiaMedicalControl/faces/home.jsp" class="first" >Home</a></li>           
                        </ul>
                    </div>
                    <!-- end #menu -->
                    <div id="search">
                        <div id="search-text">
                            <h:panelGroup rendered="#{loginBean.subview != null}">
                                <jsp:include page="${loginBean.subview}" />
                            </h:panelGroup>
                        </div>
                    </div>
                    <!-- end #search -->
                </div>
                <!-- end #header -->
                <!-- end #header-wrapper -->
                <div id="page">
                    <div id="page-bgtop">
                        <div id="content">
                            <div class="post">
                                <h2 class="title"><h:outputText value="#{msg.dati}"/></h2>
                                <p class="meta"><h:outputText value="#{msg.sub_dati}"/></p>
                                <div class="entry">
                                    <table width="100%">
                                        <tr>
                                            <td>
                                                <rich:gmap lat="#{datiMedicoBean.latitudine}" lng="#{datiMedicoBean.longitudine}" 
                                                           zoom="11"
                                                           mapType="G_NORMAL_MAP"
                                                           showGLargeMapControl="false"
                                                           showGMapTypeControl="false"
                                                           showGScaleControl="false"
                                                           enableContinuousZoom="false"
                                                           enableDoubleClickZoom="false"
                                                           enableDragging="false"
                                                           enableInfoWindow="false"
                                                           gmapKey="AIzaSyCCkv_fqbZw-4pZPl5bTUJ22mRaAKhKU48"
                                                           />
                                            </td> 
                                            <td>
                                                <table width="100%">
                                                    <tr>
                                                        <td><b><h:outputText value="#{msg.nome}"/>: </b></td>
                                                        <td>
                                                            <h:outputText value="#{datiMedicoBean.nome} #{datiPazienteBean.cognome}"/>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td><b><h:outputText value="#{msg.sesso}"/>: </b></td>
                                                        <td>
                                                            <h:outputText value="#{datiMedicoBean.sesso}"/>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td><b><h:outputText value="#{msg.data_nascita}"/>: </b></td>
                                                        <td>
                                                            <h:outputText value="#{datiMedicoBean.dataNascita}"/>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td><b><h:outputText value="#{msg.luogo_nascita}"/>: </b></td>
                                                        <td>
                                                            <h:outputText value="#{datiMedicoBean.luogoNascita}"/>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td><b><h:outputText value="#{msg.indirizzo}"/>: </b></td>
                                                        <td>
                                                            <h:outputText value="#{datiMedicoBean.indirizzo}"/>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td><b><h:outputText value="#{msg.cap}"/>: </b></td>
                                                        <td>
                                                            <h:outputText value="#{datiMedicoBean.cap}"/>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td><b><h:outputText value="#{msg.email}"/>: </b></td>
                                                        <td>
                                                            <h:outputText value="#{datiMedicoBean.email}" rendered="#{datiMedicoBean.email != null}"/>
                                                            <h:outputText value="#{msg.no_mail}" rendered="#{datiMedicoBean.email == null}"/>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>                                
                                    </table>
                                </div>
                            </div>                           
                        </div>
                        <!-- end #content -->
                        <div id="sidebar">
                            <ul>
                                <li>
                                    <jsp:include page="../subviews/language_chooser.jsp"/>
                                </li>
                                <li>
                                    <jsp:include page="../subviews/side_reserved_menu.jsp"/>
                                </li>
                            </ul>
                        </div>
                        <!-- end #sidebar -->
                        <div style="clear: both;">&nbsp;</div>
                    </div>
                </div>
                <!-- end #page -->
                <div id="footer-bgcontent">
                    <div id="footer">
                        <p>Copyright &copy; 2011 <a href="#">Mamesoft</a>
                            Progetto Programmazione per il web A.A.2011/2012</p>
                    </div>
                </div>
                <!-- end #footer -->
            </div>
        </body>
    </html>
</f:view>